package models

type Chapter struct {
	Id        int    `xorm:"not null pk autoincr INT"`
	CourseId  int    `xorm:"not null default 0 comment('课程ID') index(course_id) INT"`
	Title     string `xorm:"not null default '' comment('章节名') VARCHAR(50)"`
	Intro     string `xorm:"not null default '' comment('介绍') VARCHAR(100)"`
	IsUse     int    `xorm:"not null default 20 comment('是否启用 20-未启用 10-启用') index(course_id) TINYINT"`
	SortNum   int    `xorm:"not null default 0 comment('排序号') index(course_id) INT"`
	CreatedAt string `xorm:"created"`
	UpdatedAt string `xorm:"updated"`
	DeletedAt string `xorm:"deleted"`
}
